package com.cc.service.impl;

import com.cc.entity.CstCustomer;
import com.cc.mapper.CstCustomerMapper;
import com.cc.service.ICustomerService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 新梦想.陈超
 * @version 2021.2
 * @Description: {TODO}
 * @date 2022/5/24 下午3:24
 */
@Service
public class CustomerServiceImpl implements ICustomerService {
    @Resource
    private CstCustomerMapper cstCustomerMapper;
    @Override
    public Page<CstCustomer> list(Integer page) {
        PageHelper.startPage(page,3);
        List<CstCustomer> cstCustomerList = cstCustomerMapper.selectByExample(null);
        return (Page<CstCustomer>)cstCustomerList;
    }
}
